package com.java.date;

import java.time.LocalTime;
import java.time.ZoneId;

public class LocalTimeTest {
    public static void main(String[] args) {
        LocalTime time = LocalTime.now();
        System.out.println("Current Time =" + time);

        LocalTime specificTime = LocalTime.of(12,20,25, 40);
        System.out.println("Specific Time of Day = " + specificTime);

        LocalTime timeSH = LocalTime.now(ZoneId.of("Asia/Shanghai"));
        System.out.println("Current Time in SH = " + timeSH);

        LocalTime specificSecondTime = LocalTime.ofSecondOfDay(10000);
        System.out.println("10000 second time = " + specificSecondTime);
    }
}
